<%--
  Created by IntelliJ IDEA.
  User: wangguo
  Date: 2024/10/10
  Time: 14:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="./statics/layui/css/layui.css">
    <%--    借助layui来帮忙改善页面美观--%>
</head>
<body>
<form class="layui-form" method="post" action="dept?action=update">
    <%--  隐藏表单       --%>
    <input type="hidden" name="id" value="${dept.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">部门名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="dname" value="${dept.dname}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">更新</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<%--发送后台必须的，请求发给servlet，新增查询删除进servlet，每次调用都要建新的servlet--%>
<%--更新是先显示，后提交保存--%>
</body>
</html>
